﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetMonitor.Server
{
    public class NetMonServer : MarshalByRefObject
    {
        public NetMonServer()
        {
        }

        public string checkConnectivityStatus(string name)
        {
            foreach (NetPoint node in SrvForm.NetNodes)
                if (node.PointName.Equals(name))
                    return node.Connectivity;
            return null;
        }

        public string readConfig()
        {
            return SrvForm.Config;
        }

        public void writeConfig(string value)
        {
            SrvForm.Config = value;
        }
    }
}
